<?php
class specialApi extends baseApi{

	//构成菜单
	public function get_menu_category(){
        return array(
            0 => array('name'=>'专题分类','url'=>url('admin_class/index'),'sequence'=>2),
            );
    }

    public function get_menu_content(){
        return array(
            0 => array('name'=>'专题管理','url'=>url('admin_list/index'),'sequence'=>1),
            );
    }

    //列表标签
    public function hook_label_list(){
        return array(
            'special_class'=>array(
                'app'=>'special',
                'action'=>'label_special_class',
            ),
            'special_list'=>array(
                'app'=>'special',
                'action'=>'label_special_list',
            ),
        );
    }

    public function label_special_class($data){
        return model('special_label')->class_list($data['data']);
    }

    public function label_special_list($data){
        return model('special_label')->special_list($data['data']);
    }


	//删除关联专题内容
	public function content_del($aid)
    {
    	return model('special_list')->del($aid);
    }

    //删除关联推荐位
    public function recommend_relation_del($id)
    {
        return model('special_recommend')->relation_del($id);
    }

	
}